package com.zeei.ems.meet.model;

import com.zeei.ems.base.util.StringUtil;
import com.zeei.ems.meet.model.cnst.WaterLevelConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(value = "DataRtVO", description = "数据实体类")
public class TaskDetailVO extends DataRtVO {
    /**
     * 标识原始值
     */
    @ApiModelProperty(name = "remark", value = "备注")
    private String remark;
    /**
     * 水质类别
     */
    @ApiModelProperty(name = "waterLevel", value = "水质类别")
    private Integer waterLevel;

    private String waterLevelName;

    public String getWaterLevelName(){
        if (this.waterLevel != null && this.waterLevel > 0){
            return WaterLevelConstant.WaterLevel.FIVE.getName(this.waterLevel);
        }

        return StringUtil.empty();
    }

    /**
     * 标识原始值
     */
    @ApiModelProperty(name = "taskObject", value = "监测对象，河流或湖泊")
    private String taskObject;
}
